<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div a {
            text-decoration: none;
            color: #0aa1ed;
            border: 1px solid #ddd;
            padding: 5px 12px;
            /*radius 半径*/
            border-radius: 5px;
        }

        div {
            /*灰色背景边框没有包括到里面*/
            background: #eee;
            /*内边距*/
            padding: 25px 0;
        }

        div a.pre {
            margin-left: 60%;
            background: #f2f2f2;
            color: #666;
        }

        div a.one {
            color: #fff;
            background: #0aa1ed;
        }
    </style>
</head>
<body>
<div>
    <a href="" class="pre">上一页</a>
    <a href="" class="one">1</a>
    <a href="">2</a>
    <a href="">3</a>
    <a href="">4</a>
    <a href="">5</a>
    <a href="">下一页</a>
</div>
</body>
</html>